package com.ruoyi.used.service.impl;

import java.util.List;

import com.ruoyi.used.domain.UesdApp;
import com.ruoyi.used.mapper.UesdAppMapper;
import com.ruoyi.used.service.IUesdAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * APP信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-09
 */
@Service
public class UesdAppServiceImpl implements IUesdAppService
{
    @Autowired
    private UesdAppMapper uesdAppMapper;

    /**
     * 查询APP信息
     * 
     * @param apId APP信息ID
     * @return APP信息
     */
    @Override
    public UesdApp selectUesdAppById(Long apId)
    {
        return uesdAppMapper.selectUesdAppById(apId);
    }

    /**
     * 查询APP信息列表
     * 
     * @param uesdApp APP信息
     * @return APP信息
     */
    @Override
    public List<UesdApp> selectUesdAppList(UesdApp uesdApp)
    {
        return uesdAppMapper.selectUesdAppList(uesdApp);
    }

    /**
     * 新增APP信息
     * 
     * @param uesdApp APP信息
     * @return 结果
     */
    @Override
    public int insertUesdApp(UesdApp uesdApp)
    {
        return uesdAppMapper.insertUesdApp(uesdApp);
    }

    /**
     * 修改APP信息
     * 
     * @param uesdApp APP信息
     * @return 结果
     */
    @Override
    public int updateUesdApp(UesdApp uesdApp)
    {
        return uesdAppMapper.updateUesdApp(uesdApp);
    }

    /**
     * 删除APP信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteUesdAppByIds(String ids)
    {
        return uesdAppMapper.deleteUesdAppByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除APP信息信息
     * 
     * @param apId APP信息ID
     * @return 结果
     */
    @Override
    public int deleteUesdAppById(Long apId)
    {
        return uesdAppMapper.deleteUesdAppById(apId);
    }
}
